#pragma once

#include <windows.h>

#define DLL_EXPORT __declspec(dllexport)

#ifdef __cplusplus
extern "C"
{
#endif

DLL_EXPORT int InitSubs(const LPCWSTR sometext, const LPCWSTR encoding);
DLL_EXPORT LPCWSTR GetError();
DLL_EXPORT LPCWSTR SupportedType();
DLL_EXPORT long GetEndTime();
DLL_EXPORT int GetFirstSubSize();
DLL_EXPORT errno_t GetFirstSub(long* endTime, LPWSTR sub, size_t maxStringSize);
DLL_EXPORT LPCWSTR GetNextSub(long* duration);

#ifdef __cplusplus
}
#endif
